home *** CD-ROM | disk | FTP | other *** search
- global gScriptOMaticCurrentFormatTable
-
- on mouseDown
- set clickedMemberNum to member the memberNum of sprite the clickOn
- set newSelection to the selectedText of clickedMemberNum
- if newSelection <> EMPTY then
- set clickedMemberName to the name of clickedMemberNum
- set mediaID to value(the last char in clickedMemberName)
- delete char -30000 of clickedMemberName
- repeat with elementIndex = 1 to count(gScriptOMaticCurrentFormatTable)
- set elementData to getAt(gScriptOMaticCurrentFormatTable, elementIndex)
- if the id of elementData = mediaID then
- if not (newSelection starts "Custom") then
- setaProp(elementData, symbol(clickedMemberName), newSelection)
- setAt(gScriptOMaticCurrentFormatTable, elementIndex, elementData)
- else
- end if
- exit repeat
- end if
- end repeat
- end if
- end
-